﻿/*
* ==============================================================================
*
* FileName: CompanyDto.cs
* Created: 2020/6/08 10:45:49
* Author: Meiam
* Description: 
*
* ==============================================================================
*/
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Meiam.System.Model.Dto
{

    /// <summary>
    /// MES数据对象
    /// </summary>
    public class TLToERPDto : PageParm
    {

        /// <summary>
        /// 描述 :  
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "")]
        public string QueryText { get; set; }

    }

    /// <summary>
    /// 投料对象
    /// </summary>
    public class MESTLToERPDto
    {
        /// <summary>
        /// 描述 : 系统简称 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "PV_SOURCE_SYS_CODE")]
        public string PV_SOURCE_SYS_CODE { get; set; }

        /// <summary>
        /// 描述 : 业务比那吗 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "PV_BUSINESS_TYPE_CODE")]
      
        public string PV_BUSINESS_TYPE_CODE { get; set; }

        /// <summary>
        /// 描述 : 同步标签 
        /// 空值 : True
        /// 默认 : 
        /// </summary>
        [Display(Name = "PV_SYNCHRO_FLAG")]
        public string PV_SYNCHRO_FLAG { get; set; }

        /// <summary>
        /// 描述 : 物料编码 
        /// 空值 : False
        /// 默认 : 1
        /// </summary>
        [Display(Name = "ROWS")]
      
        public List<MESTLDetailsToERPDto> ROWS { get; set; }

    }

    public class MESTLDetailsToERPDto
    {
        /// <summary>
        /// 描述 : 组织编码 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "SCUX_ORGANIZATION_CODE")]
        public string SCUX_ORGANIZATION_CODE { get; set; }

        /// <summary>
        /// 描述 : 工单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "SCUX_WIP_ENTITY_NAME")]
        public string SCUX_WIP_ENTITY_NAME { get; set; }

        /// <summary>
        /// 描述 : 工序编码 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "OPERATION_SEQ_NUM")]
        public string OPERATION_SEQ_NUM { get; set; }

        /// <summary>
        /// 描述 : 物料编码 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "SCUX_ITEM_SEGMENT")]
        public string SCUX_ITEM_SEGMENT { get; set; }

        /// <summary>
        /// 描述 : 事务类型名称 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "SCUX_TRANSACTION_TYPE_NAME")]
        public string SCUX_TRANSACTION_TYPE_NAME { get; set; } = "WIP发放";


        /// <summary>
        /// 描述 : 处理日期 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "TRANSACTION_DATE")]
        public string TRANSACTION_DATE { get; set; }


        /// <summary>
        /// 描述 : 计量单位 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "TRANSACTION_UOM")]
        public string TRANSACTION_UOM { get; set; }

        /// <summary>
        /// 描述 : 子仓库 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "SUBINVENTORY_CODE")]
        public string SUBINVENTORY_CODE { get; set; } = "JWXC01";//默认粘晶仓

        /// <summary>
        /// 描述 : 执行参照 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "TRANSACTION_REFERENCE")]
        public string TRANSACTION_REFERENCE { get; set; } //正式id
        

        /// <summary>
        /// 描述 : 货位 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "LOCATOR_NAME")]
        public string LOCATOR_NAME { get; set; }

        /// <summary>
        /// 描述 : 批次号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "LOT_NUMBER")]
        public string LOT_NUMBER { get; set; }

        /// <summary>
        /// 描述 : 数量长度 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "TRANSACTION_QUANTITY")]
        public string TRANSACTION_QUANTITY { get; set; }

        /// <summary>
        /// 描述 : 当前处理人 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "USER_NAME")]
        public string USER_NAME { get; set; } = "999999";//默认MES0001 方棒发料专用用户

        /// <summary>
        /// 描述 : mes系统唯一主键 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "SCUX_SOURCE_NUM")]
        public string SCUX_SOURCE_NUM { get; set; }//默认 mes主键

    }

    /// <summary>
    /// 投料返回
    /// </summary>
    public class ERPTlResponseDto
    {
        
        /// <summary>
        /// 描述 : 物料编码 
        /// 空值 : False
        /// 默认 : 1
        /// </summary>
        [Display(Name = "ROWS")]

        public List<ERPTLDetailsResponseDto> ROWS { get; set; }

    }

    public class ERPTLDetailsResponseDto
    {
        /// <summary>
        /// 描述 : 返回行状态 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "INTF_STATUS")]
        public string INTF_STATUS { get; set; }

        /// <summary>
        /// 描述 : 返回错误明细 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "INTF_MESSAGE")]
        public string INTF_MESSAGE { get; set; }
        /// <summary>
        /// 描述 : 组织编码 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "SCUX_ORGANIZATION_CODE")]
        public string SCUX_ORGANIZATION_CODE { get; set; }

        /// <summary>
        /// 描述 : 工单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "SCUX_WIP_ENTITY_NAME")]
        public string SCUX_WIP_ENTITY_NAME { get; set; }

        /// <summary>
        /// 描述 : 工序编码 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "OPERATION_SEQ_NUM")]
        public string OPERATION_SEQ_NUM { get; set; }

        /// <summary>
        /// 描述 : 物料编码 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "SCUX_ITEM_SEGMENT")]
        public string SCUX_ITEM_SEGMENT { get; set; }

        /// <summary>
        /// 描述 : 事务类型名称 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "SCUX_TRANSACTION_TYPE_NAME")]
        public string SCUX_TRANSACTION_TYPE_NAME { get; set; } = "WIP发放";


        /// <summary>
        /// 描述 : 处理日期 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "TRANSACTION_DATE")]
        public string TRANSACTION_DATE { get; set; }


        /// <summary>
        /// 描述 : 计量单位 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "TRANSACTION_UOM")]
        public string TRANSACTION_UOM { get; set; }

        /// <summary>
        /// 描述 : 子仓库 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "SUBINVENTORY_CODE")]
        public string SUBINVENTORY_CODE { get; set; } = "JWXC01";//默认粘晶仓


        /// <summary>
        /// 描述 : 货位 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "LOCATOR_NAME")]
        public string LOCATOR_NAME { get; set; }

        /// <summary>
        /// 描述 : 批次号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "LOT_NUMBER")]
        public string LOT_NUMBER { get; set; }

        /// <summary>
        /// 描述 : 数量长度 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "TRANSACTION_QUANTITY")]
        public string TRANSACTION_QUANTITY { get; set; }

        /// <summary>
        /// 描述 : 当前处理人 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "USER_NAME")]
        public string USER_NAME { get; set; } = "999999";//默认MES0001 方棒发料专用用户

        /// <summary>
        /// 描述 : mes系统唯一主键 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "SCUX_SOURCE_NUM")]
        public string SCUX_SOURCE_NUM { get; set; }

        /// <summary>
        /// 描述 : erp事务处理id 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "TRANSACTION_ID")]
        public string TRANSACTION_ID { get; set; }

        /// <summary>
        /// 描述 : erp事务处理id 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "TRANSACTION_REFERENCE")]
        public string TRANSACTION_REFERENCE { get; set; }

    }

}
